package com.yc.websocket.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;

@Data
@ConfigurationProperties(prefix = "websocket")
public class WebSocketProperties {
    private Boolean enable;
    private String userTable = "user";
    private String keyColumn = "id";

    @PostConstruct
    public void init(){
        System.out.println("进入websocket");
    }
}
